import request from '@/utils/request'

// 查询护理记录列表
export function listNurseRecords(query) {
  return request({
    url: '/business/nurseRecords/list',
    method: 'get',
    params: query
  })
}

// 查询护理记录详细
export function getNurseRecords(id) {
  return request({
    url: '/business/nurseRecords/' + id,
    method: 'get'
  })
}

// 新增护理记录
export function addNurseRecords(data) {
  return request({
    url: '/business/nurseRecords',
    method: 'post',
    data: data
  })
}

// 修改护理记录
export function updateNurseRecords(data) {
  return request({
    url: '/business/nurseRecords',
    method: 'put',
    data: data
  })
}

// 删除护理记录
export function delNurseRecords(id) {
  return request({
    url: '/business/nurseRecords/' + id,
    method: 'delete'
  })
}
